home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 4 / Apprentice-Release4.iso / Source Code / C++ / Snippets / AppLauncher 1.0d0 / sources / •AZN_AELAUNCH / AZN_TAELaunch.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-10-03  |  1.2 KB  |  47 lines  |  [TEXT/CWIE]

  1. #pragma once
  2. /*
  3. *    AZN_TAELaunch.h
  4. *
  5. *    Class declaration for 'TAELaunch' class
  6. *    A class to locate, launch and manipulate
  7. *    processes & their associated files
  8. *    HEIRARCHY:    BASE CLASS
  9. *    ( Based on Pascal code by Peter Lewis, [ peter@kagi.com ] )
  10. *    ( Converted to C++ by Gilles Dignard [ gdignard@hookup.net ] )
  11. *    This version by Andrew Nemeth [ aznemeng@zeta.org.au ]
  12. *
  13. *    File Created:        21 Feb 95
  14. *    File Ammended:        21 Feb;
  15. *                    4, 6–8, 13, 14–19, 28 Mar;
  16. *                    18 Apr;
  17. *                    15 May 95.
  18. */
  19.  
  20.  
  21. class TAELaunch
  22. {
  23.     public:
  24.  
  25.         static  OSErr        findApplication        ( ConstStr63Param, OSType, FSSpecPtr );
  26.         static  OSErr        findFile                ( ConstStr63Param, OSType, OSType, FSSpecPtr );
  27.  
  28.         static  Boolean    openItemInFinder        ( const FSSpec &, Boolean );
  29.         static  Boolean    openDocInApp            ( OSType, const FSSpec &, Boolean );
  30.         
  31.         static  Boolean    findProcess            ( OSType, OSType, ProcessSerialNumber *, FSSpecPtr );
  32.  
  33.         static  Boolean    isFrontProcess            ( OSType );
  34.         static  void        makeCurrentProcessFront    ( void );
  35.  
  36.         static  void        hideProcess            ( OSType );
  37.         static  void        showProcess            ( OSType );
  38.         static  void        killProcess            ( OSType );
  39.  
  40.         static  Boolean    openControlPanel        ( OSType );
  41.  
  42.     private:
  43. //                                                        static class, never instantiate!
  44.         TAELaunch(){};
  45.         ~TAELaunch(){};
  46. };
  47.